<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
<link rel="stylesheet" type="text/css" href="template/default/content/css/style.css">
<script language="javascript" type="text/javascript" src="DatePicker/WdatePicker.js"></script>
<script charset="utf-8" src="eweb/kindeditor.js"></script>
<script type="text/javascript"> 
function show_help()
{
   mytop=(screen.availHeight-430)/2;
   myleft=(screen.availWidth-800)/2;
   window.open("admin.php?ac=view&fileurl=help&helpid=<?=$fileurl?>","","height=470,width=800,status=0,toolbar=no,menubar=no,location=no,scrollbars=yes,top="+mytop+",left="+myleft+",resizable=yes");
}
function show_down()
{
   mytop=(screen.availHeight-430)/2;
   myleft=(screen.availWidth-800)/2;
   window.open("admin.php?ac=views&fileurl=work&do=word&id=<?=$blog["id"]?>","","height=470,width=800,status=0,toolbar=no,menubar=no,location=no,scrollbars=yes,top="+mytop+",left="+myleft+",resizable=yes");
}
</script>
<title>Office 515158 2011 OA办公系统</title>
 
</head>
<body class="bodycolor">
<table width="90%" border="0" align="center" cellpadding="3" cellspacing="0" class="small">
  <tr>
    <td class="Big"><img src="template/default/content/images/notify_new.gif" align="absmiddle"><span class="big3"> 查看流程记录</span>&nbsp;&nbsp;&nbsp;&nbsp;
	<span style="font-size:12px;"><a href="#" onClick="window.print()" style="font-size:12px;">打印工作流</a>&nbsp;|&nbsp;
	<a href="#" onClick="show_down()" style="font-size:12px;">导出word文档</a>
	</span>



    </td>
  </tr>
</table>
<style type="text/css">
.tablenew{border-left:#000000 solid 1px;border-top:#000000 solid 1px;}
.tdnewtop{
	border-right:#000000 solid 1px;
	border-bottom:#000000 solid 1px;
}
.tdnew{
	border-right:#000000 solid 1px;
	border-bottom:#000000 solid 1px;
	background:#FFFFFF;
	padding-left:5px;
}
</style>
<form name="save" method="post"  action="?ac=add&do=tplsave&fileurl=work">
  <table width="800" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td height="70" colspan="3" align="center"><span class="big3"><?=$blog["title"]?></span></td>
      </tr>
      <tr>
        <td width="250" height="30">姓名：<?=GET_INC_USER_NAME($blog["uid"])?></td>
        <td width="300">部门：<?=get_work_db($blog["id"],'_cccf')?></td>
        <td width="250">流水号：<?=$blog["number"]?></td>
      </tr>
  </table>
	
  <table width="800" border="0" align="center" class="tablenew" style="margin-top:20px;">
    <tr>
      <td width="164" height="35" align="center" class="tdnewtop">加班日期</td>
      <td width="160" height="35" align="center" class="tdnewtop">加班时间</td>
      <td width="198" height="35" align="center" class="tdnewtop">加班时长
      （估值）</td>
      <td width="260" height="35" align="center" class="tdnewtop">加班原因</td>
    </tr>
	<?php
	//获取固定表单的数据
	$_fdsafd=unserialize(get_work_db($blog["id"],'_fdsafd'));
	$_43543ffdsfds=unserialize(get_work_db($blog["id"],'_43543ffdsfds'));
	$_g43fdfsd=unserialize(get_work_db($blog["id"],'_g43fdfsd'));
	$_fdsf43243243=unserialize(get_work_db($blog["id"],'_fdsf43243243'));
	?>
	<? for($i=0;$i<6;$i++){?>
    <tr>
      <td width="164" height="35" class="tdnew"><?=$_fdsafd[$i]?></td>
      <td width="160" height="35" class="tdnew"><?=$_43543ffdsfds[$i]?></td>
      <td width="198" height="35" class="tdnew"><?=$_g43fdfsd[$i]?></td>
      <td width="260" height="35" class="tdnew"><?=$_fdsf43243243[$i]?></td>
    </tr>
	<?}?>
    <tr>
      <td height="35" colspan="2" align="center" class="tdnew">加班总时长（估值）</td>
      <td height="35" colspan="2" class="tdnew"><?=get_work_db($blog["id"],'_3454fdsffdrewr')?></td>
    </tr>
  </table>
<br>
<?
global $db;
$query = $db->query("SELECT * FROM ".DB_TABLEPRE."workclass_flow where template_id='".$blog["worktemplate"]."' and number>1 ORDER BY number Asc");
	while ($row = $db->fetch_array($query)) {
$personnel = $db->fetch_one_array("SELECT * FROM ".DB_TABLEPRE."workclass_personnel where flowid='".$row['id']."' and workclassid='".$blog['id']."' ORDER BY id Asc");
//审批人
//批示
if($personnel['lnstructions']!=''){
	$lnstructions=$personnel['lnstructions'];
}else{
	$lnstructions='还没有审批!';
}
?>
<table width="800" border="0" align="center" cellpadding="3" cellspacing="0" class="small">
  <tr>
    <td width="400" class="Big"><?=$row['title']?>：<?=$personnel['name']?>&nbsp;&nbsp;<?=$lnstructions?></td>
    <td class="Big">日期：<?=$personnel['approvaldate']?></td>
  </tr>
</table>

<?}?>
  
  
  
</form>

 
</body>
</html>
